package xyz.riceball.develop.common.enums;

import lombok.Getter;

/**
 * <p>
 * 功能的类型
 * </p>
 *
 * @author xiaovcloud
 * @since 2022/4/25 21:02
 */
@Getter
public enum ENRouteCheckType {

    /**
     * 免登录
     */
    NO_LOGIN("0", "免登录"),

    /**
     * 登录
     */
    LOGIN("1", "登录"),
    /**
     * 授权
     */
    AUTH("2", "授权"),
    ;

    ENRouteCheckType(String value, String name) {
        this.value = value;
        this.name = name;
    }

    private final String value;

    private final String name;

    private int intValue(){
        return Integer.parseInt(value);
    }

}
